package cn.com.inossem.requestmanager;

import cn.com.inossem.model.EducationInfoBean;
import cn.com.inossem.model.ProfessionalInfoBean;
import cn.com.inossem.model.ProjectXiangmuInfoBean;
import cn.com.inossem.model.QueryProjectInfoBean;
import cn.com.inossem.model.QueryProjectOpportunityInfoBean;
import cn.com.inossem.operation.AddBaGuaHuifuOperation;
import cn.com.inossem.operation.AddEducationOperation;
import cn.com.inossem.operation.AddFriendsOperation;
import cn.com.inossem.operation.AddGongsiOperation;
import cn.com.inossem.operation.AddProfessionalOperation;
import cn.com.inossem.operation.AddTongxuluOperation;
import cn.com.inossem.operation.AddXiangmuOperation;
import cn.com.inossem.operation.AddYaoqingFriendsOperation;
import cn.com.inossem.operation.ApplyCollectionOperation;
import cn.com.inossem.operation.BaGuaListOperation;
import cn.com.inossem.operation.BaguaHuifuDelOperation;
import cn.com.inossem.operation.DelBaguaOperation;
import cn.com.inossem.operation.DelEducationOperation;
import cn.com.inossem.operation.DelFriendsOperation;
import cn.com.inossem.operation.DelProfessionalOperation;
import cn.com.inossem.operation.DelProjectGongsiOperation;
import cn.com.inossem.operation.DelProjectXiangmuOperation;
import cn.com.inossem.operation.GetMessageOperation;
import cn.com.inossem.operation.JobsOpportunityOperation;
import cn.com.inossem.operation.JuBaoOperation;
import cn.com.inossem.operation.LoginOperation;
import cn.com.inossem.operation.PersonalCenterOperation;
import cn.com.inossem.operation.PreferencesOperation;
import cn.com.inossem.operation.ProjectXiangmuOperation;
import cn.com.inossem.operation.RegisteredOperation;
import cn.com.inossem.operation.UploadZhanghaoOperation;
import cn.com.inossem.operation.UploadmimaOperation;
import cn.com.inossem.operation.WangjimimaOperation;
import cn.com.inossem.operation.YanZhengmaOperation;
import cn.com.inossem.operation.ZanOperation;

import com.foxykeep.datadroid.requestmanager.Request;

public final class WooRequestFactory

{
	// Request types
	public static final int REQUEST_TYPE_HOME = 0;

	public static final int REQUEST_TYPE_lOGIN = 1; // 登陆

	public static final int REQUEST_TYPE_JOBS = 2; // 项目机会

	public static final int REQUEST_TYPE_PREFERENCES = 3; // 上传偏好

	public static final int REQUEST_TYPE_APPLY = 4; // 收藏申请接口

	public static final int REQUEST_TYPE_PERSONAL = 5; // 修改个人中心

	public static final int REQUEST_TYPE_SKILLS = 6; // 获取技能

	public static final int REQUEST_TYPE_UPDATESKILLS = 7; // 修改技能

	public static final int REQUEST_TYPE_REGISTERED = 8; // 注册

	public static final int REQUEST_TYPE_PROJECTGONGSI = 9; // 项目经验公司

	public static final int REQUEST_TYPE_PROJECTXIANGMU = 10; // 项目经验项目

	public static final int REQUEST_TYPE_ADDGONGSI = 11; // 项目经验添加公司

	public static final int REQUEST_TYPE_ADDXIANGMU = 12; // 项目经验添加项目

	public static final int REQUEST_TYPE_DELGONGSI = 13; // 项目经验删除公司

	public static final int BREQUEST_TYPE_DELXIANGMU = 14; // 项目经验删除项目

	public static final int REQUEST_TYPE_PROFESSIONAL = 15; // 职业背景

	public static final int REQUEST_TYPE_ADDPROFESSIONAL = 16; // 添加职业背景

	public static final int REQUEST_TYPE_EDUCATION = 17; // 职业背景

	public static final int REQUEST_TYPE_ADDEDUCATIONL = 18; // 添加职业背景

	public static final int REQUEST_TYPE_UPDATEZHANGHAOL = 19; // 修改账号

	public static final int REQUEST_TYPE_DELEDUCATION = 20; // 项目经验删除公司

	public static final int REQUEST_TYPE_DELPROFESSIONAL = 21; // 项目经验删除公司

	public static final int REQUEST_TYPE_ADDBAGUA = 22; // 添加八卦

	public static final int REQUEST_TYPE_SEARCHBAGUA = 23; // 八卦搜索

	public static final int REQUEST_TYPE_BAGUALIST = 24; // 八卦列表

	public static final int REQUEST_TYPE_YANZHENGMA = 25; // 验证码

	public static final int REQUEST_TYPE_ZAN = 26; // 赞

	public static final int REQUEST_TYPE_ADDBAGUAHUIFU = 27; // 添加八回复

	public static final int REQUEST_TYPE_ZHUXIAO = 28; // 注销

	public static final int REQUEST_TYPE_XIAOCHU = 29; // 注销

	public static final int REQUEST_TYPE_UPDATAMIMA = 30; // 注销

	public static final int REQUEST_TYPE_ADDFRIENDS = 31; // 添加好友

	public static final int REQUEST_TYPE_FRIENDSDETAILS = 32; // 添加好友

	public static final int REQUEST_TYPE_FRIENDSLIST = 33; // 添加好友

	public static final int REQUEST_TYPE_DELBAGUA = 34; // 删除八卦

	public static final int REQUEST_TYPE_DELFRIENDS = 35; // 删除好友

	public static final int REQUEST_TYPE_JUBAO = 36; // 删除好友

	public static final int REQUEST_TYPE_TONGXULU = 37; // 删除好友

	public static final int REQUEST_TYPE_GETTONGXULU = 38; // 删除好友

	public static final int REQUEST_TYPE_YAOQING = 39; // 邀请好友

	public static final int REQUEST_TYPE_MESSAGELIST = 40; // 邀请好友

	public static final int REQUEST_TYPE_AGREEFRIEND = 41; // 邀请好友

	public static final int REQUEST_TYPE_BAGUAHUIFUDEL = 42; // 删除八卦回复

	public static final int REQUEST_TYPE_WANGJIMIMA = 43;// 忘记密码

	public static final int REQUEST_TYPE_WEBVIEW = 44;// webview
	
	public static final int REQUEST_TYPE_MYMOMENTS = 45;// webview
	
	public static final int REQUEST_TYPE_PACKAGE_VERSION = 46;// webview

	// login response data
	public static final String RESPONSE_LOGIN_DATA = "response_login_data";

	public static final String PREFERENCES_SETING_DATA = "preferences_seting_data";

	public static final String SEARCH_SETING_DATA = "search_seting_data";

	public static final String RESPONSE_JOBSOPPORTUNITY_DATA = "response_jobsopportunity_data"; // 项目机会

	public static final String RESPONSE_SKILLS_DATA = "response_skills_data";// 获取技能

	public static final String RESPONSE_PROJECTGONGSI_DATA = "response_projectgongsi_data";// 项目经验公司

	public static final String RESPONSE_PROJECTXIANGMU_DATA = "response_projectxiangmu_data";// 项目经验项目

	public static final String RESPONSE_PROFESSIONAL_DATA = "response_professional_data";// 项目背景

	public static final String RESPONSE_EDUCATION_DATA = "response_education_data";// 教育背景

	public static final String RESPONSE_BAGUALIST_DATA = "response_bagualist_data";// 八卦列表

	public static final String RESPONSE_FRIENDS_DATA = "response_friends_data";// 教育背景
	// Response data
	public static final String BUNDLE_EXTRA_LOGIN = "bundle_extra_login";// 登录成功

	public static final String BUNDLE_JOBSOPPORTUNITY_LIST = "bundle_jobsopportunity_list";// 项目机会

	public static final String BUNDLE_PREFERENCES_RESULT = "bundle_preferences_result";// 偏好上传

	public static final String RESPONSE_ERROR_MESSAGE = "response_error_message"; // 返回报错信息

	public static final String BUNDLE_EXTRA_APPLYSUCCESS = "bundle_extra_applysuccess";// 收藏申请成功
	public static final String BUNDLE_EXTRA_POSITIONSUCCESS = "bundle_extra_positionsuccess";// 职位申请成功

	public static final String BUNDLE_EXTRA_APPLYQUXIAO = "bundle_extra_applyquxiao";// 取消收藏
	public static final String BUNDLE_EXTRA_POSITIONQUXIAO = "bundle_extra_positionquxiao";// 取消申请

	public static final String BUNDLE_EXTRA_APPLYFAILURE = "bundle_extra_applyfailure";// 收藏申请失败

	public static final String BUNDLE_EXTRA_SKILLSSUCCESS = "bundle_extra_skillssuccess";// 获取技能成功
	public static final String BUNDLE_EXTRA_REGISTERED = "bundle_extra_registered";// 获取技能成功
	public static final String BUNDLE_EXTRA_WANGJIMIMA = "bundle_extra_wangjimima";// 获取技能成功

	public static final String BUNDLE_EXTRA_PROJECTSUCCESS = "bundle_extra_projectsuccess";// 获取技能成功

	public static final String BUNDLE_EXTRA_SUCCESS = "bundle_extra_success";// 修改成功
	public static final String BUNDLE_EXTRA_UPDATESUCCESS = "bundle_extra_UPDATEsuccess";// 修改成功
	public static final String BUNDLE_EXTRA_ZANSUCCESS = "bundle_extra_zansuccess";// 赞成功

	public static final String BUNDLE_EXTRA_UPDATESUCCESSZHANGHAO = "bundle_extra_UPDATEsuccesszhanghao";// 修改成功账号
	public static final String BUNDLE_EXTRA_MIMASUCCESS = "bundle_extra_mimasuccess";// 赞成功

	public static final String BUNDLE_EXTRA_DELGONGSI = "bundle_extra_delgongsi";// 删除公司成功
	public static final String BUNDLE_EXTRA_DELXIANGMU = "bundle_extra_delxiangmu";// 删除项目成功

	public static final String BUNDLE_EXTRA_DELSUCCESS = "bundle_extra_deLsuccess";// 删除项目成功
	public static final String BUNDLE_EXTRA_TONGXULU = "bundle_extra_tongxunlu";// 通讯录

	public static final String BUNDLE_EXTRA_YAOQINGSUCCESS = "bundle_extra_yaoqingsuccess";// 邀请成功

	public static final String BUNDLE_EXTRA_MESSAGELIST = "bundle_extra_messagelist";// 通讯录

	public static final String BUNDLE_EXTRA_WEBVIEW = "bundle_extra_webview";// webview

	private WooRequestFactory() {
	}

	/**
	 * 获取登陆请求的信息
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public static Request getLoginDataRequest(String username, String password) {
		Request request = new Request(REQUEST_TYPE_lOGIN);
		request.put(LoginOperation.LOGIN_OPERATION_USERNAME, username);
		request.put(LoginOperation.LOGIN_OPERATION_PASSWORD, password);
		return request;
	}

	/**
	 * 获取项目机会,收藏,申请记录等信息
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public static Request getJobsOpportunityDataRequest(
			QueryProjectOpportunityInfoBean bean) {
		Request request = new Request(REQUEST_TYPE_JOBS);
		request.put(JobsOpportunityOperation.MESSAGE_OPERATION_JOBSBEAN, bean);
		return request;
	}

	/**
	 * 上传偏好接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public static Request getPreferencesRequest(String str) {
		Request request = new Request(REQUEST_TYPE_PREFERENCES);
		request.put(PreferencesOperation.PREFERENCES_OPERATION_STR, str);
		return request;
	}

	/**
	 * 收藏申请接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getApplyCollect(QueryProjectInfoBean bean) {
		Request request = new Request(REQUEST_TYPE_APPLY);
		request.put(ApplyCollectionOperation.APPLY_OPERATION_BEAN, bean);
		System.out.println(bean.salary + "===11111=====" + bean.remark);
		return request;
	}

	public static Request getApplyCollect() {
		Request request = new Request(REQUEST_TYPE_APPLY);
		return request;
	}

	/**
	 * 修改个人中心接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request updatePersonal(String key, String value) {
		Request request = new Request(REQUEST_TYPE_PERSONAL);
		request.put(PersonalCenterOperation.PERSONAL_OPERATION_KEY, key);
		request.put(PersonalCenterOperation.PERSONAL_OPERATION_VALUE, value);
		return request;
	}

	/**
	 * 修改个人中心接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request updatezhanghao(String key, String value, String key1,
			String value1) {
		Request request = new Request(REQUEST_TYPE_UPDATEZHANGHAOL);
		request.put(UploadZhanghaoOperation.PERSONAL_OPERATION_KEY, key);
		request.put(UploadZhanghaoOperation.PERSONAL_OPERATION_VALUE, value);
		request.put(UploadZhanghaoOperation.PERSONAL_OPERATION_KEY1, key1);
		request.put(UploadZhanghaoOperation.PERSONAL_OPERATION_VALUE1, value1);
		return request;
	}

	/**
	 * 获取技能接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getSkills() {
		Request request = new Request(REQUEST_TYPE_SKILLS);
		return request;
	}

	/**
	 * 修改技能接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request updateSkills() {
		Request request = new Request(REQUEST_TYPE_UPDATESKILLS);
		return request;
	}

	/**
	 * 注册接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public static Request getRegistered(String username, String password,
			String truename, String email, String validcode, String promoCode) {
		Request request = new Request(REQUEST_TYPE_REGISTERED);
		request.put(RegisteredOperation.REGISTERED_OPERATION_USERNAME, username);
		request.put(RegisteredOperation.REGISTERED_OPERATION_PASSWORD, password);
		request.put(RegisteredOperation.REGISTERED_OPERATION_VALIDCODE, validcode);
		request.put(RegisteredOperation.REGISTERED_OPERATION_TRUENAME, truename);
		request.put(RegisteredOperation.REGISTERED_OPERATION_EMAIL, email);
		request.put(RegisteredOperation.REGISTERED_OPERATION_INVITEUSER, promoCode);
		return request;
	}

	/**
	 * 忘记密码
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public static Request getwangjimima(String username, String password,
			String validcode) {
		Request request = new Request(REQUEST_TYPE_WANGJIMIMA);
		request.put(WangjimimaOperation.REGISTERED_OPERATION_USERNAME, username);
		request.put(WangjimimaOperation.REGISTERED_OPERATION_PASSWORD, password);
		request.put(WangjimimaOperation.REGISTERED_OPERATION_VALIDCODE,
				validcode);
		return request;
	}

	/**
	 * 获取公司接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getProjectGongsi() {
		Request request = new Request(REQUEST_TYPE_PROJECTGONGSI);
		return request;
	}

	/**
	 * 获取公司项目接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getProjectXiangmu(String comId) {
		Request request = new Request(REQUEST_TYPE_PROJECTXIANGMU);
		request.put(ProjectXiangmuOperation.PROJECT_OPERATION_COMID, comId);
		return request;
	}

	/**
	 * 添加公司接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addGongsi(String key, String value) {
		Request request = new Request(REQUEST_TYPE_ADDGONGSI);
		request.put(AddGongsiOperation.PERSONAL_OPERATION_KEY, key);
		request.put(AddGongsiOperation.PERSONAL_OPERATION_VALUE, value);
		return request;
	}

	/**
	 * 添加修改项目项目接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addXiangmu(ProjectXiangmuInfoBean bean) {
		Request request = new Request(REQUEST_TYPE_ADDXIANGMU);
		request.put(AddXiangmuOperation.PERSONAL_OPERATION_BEAN, bean);
		return request;
	}

	/**
	 * 删除公司接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delGongsi(String delid) {
		Request request = new Request(REQUEST_TYPE_DELGONGSI);
		request.put(DelProjectGongsiOperation.DELPROJECTGONGSI_OPERATION_ID,
				delid);
		return request;
	}

	/**
	 * 删除公司接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delXiangmu(String delid) {
		Request request = new Request(BREQUEST_TYPE_DELXIANGMU);
		request.put(DelProjectXiangmuOperation.DELPROJECTXIANGMU_OPERATION_ID,
				delid);
		return request;
	}

	/**
	 * 获取职业背景
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getProfessional() {
		Request request = new Request(REQUEST_TYPE_PROFESSIONAL);
		return request;
	}

	/**
	 * 添加职业背景
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addProfessional(ProfessionalInfoBean bean) {
		Request request = new Request(REQUEST_TYPE_ADDPROFESSIONAL);
		request.put(AddProfessionalOperation.PROFESSIONAL_OPERATION_BEAN, bean);
		return request;
	}

	/**
	 * 删除职业背景
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delProfessional(String delid) {
		Request request = new Request(REQUEST_TYPE_DELPROFESSIONAL);
		request.put(DelProfessionalOperation.DELPROFESSIONAL_OPERATION_ID,
				delid);
		return request;
	}

	/**
	 * 获取教育
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getEducation() {
		Request request = new Request(REQUEST_TYPE_EDUCATION);
		return request;
	}

	/**
	 * 添加教育
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addEducation(EducationInfoBean bean) {
		Request request = new Request(REQUEST_TYPE_ADDEDUCATIONL);
		request.put(AddEducationOperation.EDUCATION_OPERATION_BEAN, bean);
		return request;
	}

	/**
	 * 删除教育
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delEducation(String delid) {
		Request request = new Request(REQUEST_TYPE_DELEDUCATION);
		request.put(DelEducationOperation.DELEDUCATION_OPERATION_ID, delid);
		return request;
	}

	/**
	 * 添加八卦
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addBagua() {
		Request request = new Request(REQUEST_TYPE_ADDBAGUA);
		return request;
	}

	/**
	 * 添加八卦回复
	 * 
	 * @param username
	 * @param password
	 * @return
	 * @return
	 */

	public static Request addBaguaHuifu(String parentid, String name,
			String text, String picname) {
		Request request = new Request(REQUEST_TYPE_ADDBAGUAHUIFU);
		request.put(AddBaGuaHuifuOperation.BAGUAHUIFU_OPERATION_PARENTID,
				parentid);
		request.put(AddBaGuaHuifuOperation.BAGUAHUIFU_OPERATION_NAME, name);
		request.put(AddBaGuaHuifuOperation.BAGUAHUIFU_OPERATION_TEXT, text);
		request.put(AddBaGuaHuifuOperation.BAGUAHUIFU_OPERATION_ICON, picname);
		return request;
	}

	/**
	 * 搜索八卦
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getSearchBagua() {
		Request request = new Request(REQUEST_TYPE_SEARCHBAGUA);
		return request;
	}

	/**
	 * 八卦列表
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getBagualist(String key, String pagenum,
			String parentID) {
		Request request = new Request(REQUEST_TYPE_BAGUALIST);
		request.put(BaGuaListOperation.LIST_OPERATION_KEY, key);
		request.put(BaGuaListOperation.LIST_OPERATION_PAGENUM, pagenum);
		request.put(BaGuaListOperation.LIST_OPERATION_PARENTID, parentID);
		return request;
	}
	
	/**
	 * 我参与的畅聊列表
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getMyMomentslist(String key, String pagenum,
			String parentID) {
		Request request = new Request(REQUEST_TYPE_MYMOMENTS);
		request.put(BaGuaListOperation.LIST_OPERATION_KEY, key);
		request.put(BaGuaListOperation.LIST_OPERATION_PAGENUM, pagenum);
		request.put(BaGuaListOperation.LIST_OPERATION_PARENTID, parentID);
		return request;
	}

	/**
	 * 验证码接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request Yanzhengma(String key, String value, String usertype) {
		Request request = new Request(REQUEST_TYPE_YANZHENGMA);
		request.put(YanZhengmaOperation.YANZHENGMA_OPERATION_KEY, key);
		request.put(YanZhengmaOperation.YANZHENGMA_OPERATION_VALUE, value);
		request.put(YanZhengmaOperation.YANZHENGMA_OPERATION_USERTYPE, usertype);
		return request;
	}

	/**
	 * 赞接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request zanJiekou(String key, String value) {
		Request request = new Request(REQUEST_TYPE_ZAN);
		request.put(ZanOperation.ZAN_OPERATION_KEY, key);
		request.put(ZanOperation.ZAN_OPERATION_VALUE, value);
		return request;
	}

	/**
	 * 注销接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request zhuxiao() {
		Request request = new Request(REQUEST_TYPE_ZHUXIAO);
		return request;
	}

	/**
	 * 清除收藏接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request xiaochu() {
		Request request = new Request(REQUEST_TYPE_XIAOCHU);
		return request;
	}

	/**
	 * 赞接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request updatamina(String password, String newPassword) {
		Request request = new Request(REQUEST_TYPE_UPDATAMIMA);
		request.put(UploadmimaOperation.PERSONAL_OPERATION_PASSWORD, password);
		request.put(UploadmimaOperation.PERSONAL_OPERATION_NEWPASSWORD,
				newPassword);
		return request;
	}

	/**
	 * 添加好友接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request addfriends(String phone) {
		Request request = new Request(REQUEST_TYPE_ADDFRIENDS);
		request.put(AddFriendsOperation.FRIENDS_OPERATION_PHONE, phone);
		return request;
	}

	/**
	 * 添加好友接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request agreefriend(String phone) {
		Request request = new Request(REQUEST_TYPE_AGREEFRIEND);
		request.put(AddFriendsOperation.FRIENDS_OPERATION_PHONE, phone);
		return request;
	}

	/**
	 * 邀请好友接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request yaoqingfriends(String phone) {
		Request request = new Request(REQUEST_TYPE_YAOQING);
		request.put(AddYaoqingFriendsOperation.FRIENDS_OPERATION_PHONE, phone);
		return request;
	}

	/**
	 * 好友详情接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request friendsdetails(String phone) {
		Request request = new Request(REQUEST_TYPE_FRIENDSDETAILS);
		request.put(AddFriendsOperation.FRIENDS_OPERATION_PHONE, phone);
		return request;
	}

	/**
	 * 好友列表接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request friendslist() {
		Request request = new Request(REQUEST_TYPE_FRIENDSLIST);
		return request;
	}

	/**
	 * 删除八卦接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delbagua(String gossipid) {
		Request request = new Request(REQUEST_TYPE_DELBAGUA);
		request.put(DelBaguaOperation.DELBAGUA_OPERATION_ID, gossipid);
		return request;
	}

	/**
	 * 删除好友接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request delfriends(String phone) {
		Request request = new Request(REQUEST_TYPE_DELFRIENDS);
		request.put(DelFriendsOperation.FRIENDS_OPERATION_PHONE, phone);
		return request;
	}

	/**
	 * 举报接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request jubao(String gossipID, String reportType,
			String comment) {
		Request request = new Request(REQUEST_TYPE_JUBAO);
		request.put(JuBaoOperation.JUBAO_OPERATION_GOSSIPID, gossipID);
		request.put(JuBaoOperation.JUBAO_OPERATION_REPORTTYPE, reportType);
		request.put(JuBaoOperation.JUBAO_OPERATION_COMMENT, comment);
		return request;
	}

	/**
	 * 获取通讯录接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getTongxunlu() {
		Request request = new Request(REQUEST_TYPE_GETTONGXULU);
		return request;
	}

	/**
	 * 上传通讯录接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request tongxunlu(String jsonstr) {
		Request request = new Request(REQUEST_TYPE_TONGXULU);
		request.put(AddTongxuluOperation.TONGXULU_OPERATION_DATA, jsonstr);
		return request;
	}

	/**
	 * 消息接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getMessage(String num) {
		Request request = new Request(REQUEST_TYPE_MESSAGELIST);
		request.put(GetMessageOperation.GETMESSAGE_OPERATION_NUM, num);
		return request;
	}

	/**
	 * 删除八卦回复接口
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request baguahuifudel(String value) {
		Request request = new Request(REQUEST_TYPE_BAGUAHUIFUDEL);
		request.put(BaguaHuifuDelOperation.HUIFUDEL_OPERATION_VALUE, value);
		return request;
	}

	/**
	 * webview
	 * 
	 * @param username
	 * @param password
	 * @return
	 */

	public static Request getWebview() {
		Request request = new Request(REQUEST_TYPE_WEBVIEW);
		return request;
	}
	
	/**
	 * 获取应用版本号
	 * 
	 * @return
	 */
	public static Request getPackageVersion() {
		Request request = new Request(REQUEST_TYPE_PACKAGE_VERSION);
		return request;
	}

	// /**
	// * 获取是否需要更新版本的信息
	// *
	// * @param type
	// * 类型
	// * @param version
	// * 版本号
	// * @return
	// */
	// public static Request getIsUpdateVersionRequest(String type, String
	// version) {
	// Request request = new Request(REQUEST_IS_UPDATE_VERSION);
	// request.put(UpdateVersionOperation.UPDATE_VERSION_OPERATION_TYPE, type);
	// // 版本号类型0，安卓；1，ios
	// request.put(UpdateVersionOperation.UPDATE_VERSION_OPERATION_VERSION,
	// version); // 版本号：数字
	// return request;
	//
	// }
	//
	// // 获取验证码
	// public static Request getIdentityRequest(String telno) {
	// Request request = new Request(REQUEST_GET_IDENTITY);
	// request.put(IdentifyOperation.IDENTIFY_OPERATION_TELNO, telno);
	//
	// return request;
	// }
	//
	// // 获取注册请求信息
	// public static Request getRegisterDataRequest(String teleno,
	// String password, String authcode) {
	// Request request = new Request(REQUEST_TYPE_REGIST);
	// request.put(RegisterOperation.REGIST_OPERATION_PHONE_NUM, teleno);
	// request.put(RegisterOperation.REGIST_OPERATION_PASSWORD, password);
	// request.put(RegisterOperation.REGIST_OPERATION_IDENTIFY, authcode);
	//
	// return request;
	// }
	//
	// /**
	// * 获取小区列表数据的请求
	// *
	// * @param cityId
	// * @param cityName
	// * @param page
	// * @return
	// */
	// public static Request getChoseCommunityRequest(String cityId,
	// String cityName, String page) {
	// Request request = new Request(REQUEST_TYPE_HOME_LIST);
	// request.put(ChoseCommunityOperation.CHOSECOMMUNITYOPERATION_CITY_ID,
	// cityId);
	// request.put(ChoseCommunityOperation.CHOSECOMMUNITYOPERATION_CITY_NAME,
	// cityName);
	// request.put(ChoseCommunityOperation.CHOSECOMMUNITYOPERATION_PAGE, page);
	// return request;
	// }
	//
	// /**
	// * 保安列表
	// *
	// * @param u_Id
	// * @return
	// */
	// public static Request getSecurityListRequest(String cellid) {
	// Request request = new Request(REQUEST_SECURITY_LIST);
	// request.put(SecurityListOperation.SECURITY_LIST_OPERATION_CELLID,
	// cellid);
	//
	// return request;
	// }
	//
	// /**
	// * 工单列表
	// *
	// * @param u_Id
	// * @param cell_Id
	// * @param pagenum
	// * @return
	// */
	// public static Request getOrderListRequest(int u_Id, String cell_Id,
	// int pagenum) {
	// Request request = new Request(REQUEST_ORDER_LIST);
	// request.put(OrderListOperation.ORDERLISTOPERATION_USERID, u_Id);
	// request.put(OrderListOperation.ORDERLISTOPERATION_CELLID, cell_Id);
	// request.put(OrderListOperation.ORDERLISTOPERATION_PAGENUM, pagenum);
	// return request;
	// }
	//
	// // 公告列表
	// public static Request getMessageList(String cell_Id, String minid) {
	// Request request = new Request(REQUEST_MESSAGE_LIST);
	// request.put(MessageListOperation.MESSAGE_OPERATION_CELLID, cell_Id);
	// request.put(MessageListOperation.MESSAGE_OPERATION_PAGE, minid);
	// return request;
	// }
	//
	// /**
	// * 轮询图
	// *
	// * @return
	// */
	// public static Request getRoundList() {
	// Request request = new Request(REQUEST_SHOUYE_ROUND);
	//
	// return request;
	// }
	//
	// /**
	// * 团购
	// *
	// * @return
	// */
	// public static Request getGroud(String cell_Id, int page) {
	// Request request = new Request(REQUEST_GROUD);
	// request.put(GroudOperation.GROUD_OPERATION_CELLID, cell_Id);
	// request.put(GroudOperation.GROUD_OPERATION_PAGE, page);
	// return request;
	// }
	//
	// /**
	// * 团购详细信息
	// *
	// * @param cell_Id
	// * @param page
	// * @return
	// */
	// public static Request getGroudDetail(String businessId, String dealId,
	// String userId) {
	// Request request = new Request(REQUEST_GROUDDETAIL);
	// request.put(GroudDetailOperation.GROUD_OPERATION_BUSINESSID, businessId);
	// request.put(GroudDetailOperation.GROUD_OPERATION_DEALID, dealId);
	// request.put(GroudDetailOperation.GROUD_OPERATION_USERID, userId);
	// return request;
	// }
	//
	// /**
	// * 团购统计收藏
	// */
	// public static Request getCollectionDetail(String businessId, String
	// dealId,
	// String userId,String dataFrom,String optType) {
	// Request request = new Request(REQUEST_GROUDCOLLECTION);
	// request.put(GroudCollectionDetailOperation.GROUD_OPERATION_BUSINESSID,
	// businessId);
	// request.put(GroudCollectionDetailOperation.GROUD_OPERATION_DEALID,
	// dealId);
	// request.put(GroudCollectionDetailOperation.GROUD_OPERATION_USERID,
	// userId);
	// request.put(GroudCollectionDetailOperation.GROUD_OPERATION_DATAFROM,
	// dataFrom);
	// request.put(GroudCollectionDetailOperation.GROUD_OPERATION_OPTTYPE,
	// optType);
	// return request;
	// }
	//
	// /**
	// * 优惠
	// *
	// * @return
	// */
	// public static Request getPreferential(String cell_Id, int page) {
	// Request request = new Request(REQUEST_PREFERENTIAL);
	// request.put(PreferentialOperation.PREFERENTIAL_OPERATION_CELLID,
	// cell_Id);
	// request.put(PreferentialOperation.PREFERENTIAL_OPERATION_PAGE, page);
	// return request;
	// }
	//
	// // 工单详情
	// public static Request getOrderDetailRequest(int repairid) {
	// Request request = new Request(REQUEST_ORDER_DETAIL);
	// request.put(OrderDetailOperation.ORDERDETAILOPERATION_REPAIRID,
	// repairid);
	// return request;
	// }
	//
	// // 获取房间信息
	// public static Request getRoomRequest(int userid, String cellid) {
	// Request request = new Request(REQUEST_ROOM_LIST);
	// request.put(RoomOperation.ROOMOPERATION_USERID, userid);
	// request.put(RoomOperation.ROOMOPERATION_CELLID, cellid);
	// return request;
	// }
	//
	// /**
	// * 上传巡检拍照的图片
	// *
	// * @param files
	// * @return
	// */
	// public static Request getUpLoadRequest(Map<Integer, File> files) {
	// Request request = new Request(REQUEST_FILE_UPLOAD);
	// StringBuffer buffer = new StringBuffer();
	// for (Integer v_id : files.keySet()) {
	// buffer.append(files.get(v_id).getAbsolutePath() + ",");
	// }
	// request.put(FileUpLoadOperation.FILE_UPLOAD_OPERATION_FILELIST,
	// buffer.toString());
	// return request;
	// }
	//
	// public static Request getUploadSinglePic(File file) {
	// Request request = new Request(REQUEST_FILE_UPLOAD_SINGLE_PIC);
	// return request;
	//
	// }
	//
	// // 巡检信息提交
	// public static Request getSubmitSiteInspection(String address, int u_id,
	// String cellid, ArrayList<CharSequence> sequences) {
	// StringBuffer buffer = new StringBuffer();
	// if (sequences != null) {
	// for (CharSequence charSequence : sequences) {
	// buffer.append(charSequence + ",");
	// }
	// }
	// Request request = new Request(REQUEST_SITE_INSPECTION);
	// request.put(
	// SubmitSiteInspectionOperation.SUBMITSITEINSPECTIONOPERATION_ADDRESS,
	// address);
	// request.put(
	// SubmitSiteInspectionOperation.SUBMITSITEINSPECTIONOPERATION_U_ID,
	// u_id);
	// request.put(
	// SubmitSiteInspectionOperation.SUBMITSITEINSPECTIONOPERATION_CELL_ID,
	// cellid);
	//
	// if (buffer.length() > 0) {
	// request.put(
	// SubmitSiteInspectionOperation.SUBMITSITEINSPECTIONOPERATION_URLS,
	// buffer.toString());
	// }
	// return request;
	// }
	//
	// /**
	// * 业主提交评价
	// *
	// * @param uid
	// * @param personname
	// * @param repairtype
	// * @param phone
	// * @param address
	// * @param Remarks
	// * @param repairReason
	// * @param cellid
	// * @param sequences
	// * @return
	// */
	// public static Request getOrderUpdateRequest(OrderDetailresultData data,
	// int userid, String cellid, String userrole) {
	// StringBuffer buffer = new StringBuffer();
	//
	// Request request = new Request(REQUEST_UPDATE_ORDER);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRID, data.repairid);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRPERSON,
	// data.repairperson);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REREPAIRTEL,
	// data.repairtel);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRTYPE,
	// data.repairtype);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRADDRESS,
	// data.repairaddress);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRREASON,
	// data.repairreason);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REMARK, data.remarks);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_USERID, userid);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_CELLID, cellid);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_SATISFACTION,
	// data.satisfaction);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_SATISFACTIONMSG,
	// data.satisfactionmsg);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRNOTE,
	// data.repairsnote);
	// request.put(OrderUpdateOperation.ORDER_UPDATE_REPAIRSTATE, "6"); //
	// 业主提交评价时状态改为“回访完成”
	// request.put(OrderUpdateOperation.ORDER_UPDATE_USERROLE, userrole);
	//
	// return request;
	// }
	//
	// /**
	// * 提交报修信息
	// *
	// * @param uid
	// * @param personname
	// * @param repairtype
	// * @param phone
	// * @param address
	// * @param Remarks
	// * @param repairReason
	// * @param cellid
	// * @param sequences
	// * @return
	// */
	// public static Request getRepairDataRequest(int uid, String personname,
	// int repairtype, String phone, String address, String Remarks,
	// String repairReason, String cellid,
	// ArrayList<CharSequence> sequences) {
	// StringBuffer buffer = new StringBuffer();
	// if (sequences != null) {
	// for (CharSequence charSequence : sequences) {
	// buffer.append(charSequence + ",");
	// }
	// }
	// Request request = new Request(REQUEST_LAUNCH_REPAIR);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_USERID, uid);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_REPAIRPERSON,
	// personname);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_REPAIRTYPE,
	// repairtype);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_REREPAIRTEL,
	// phone);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_REPAIRADDRESS,
	// address);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_MARK, Remarks);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_REPAIRREASON,
	// repairReason);
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_CELLID, cellid);
	// if (buffer.length() > 0) {
	// request.put(LaunchRepairOperation.LAUNCH_REPAIROPERATION_URLS,
	// buffer.toString());
	// }
	//
	// return request;
	// }
	//
	// // 巡检记录列表
	// public static Request getPatrolListRequest(int u_Id, String date,
	// String cellid, String minid, int pagenum) {
	// Request request = new Request(REQUEST_PATROL_LIST);
	// request.put(PatrolListOperation.PATROL_LIST_OPERATION_USERID, u_Id);
	// request.put(PatrolListOperation.PATROL_LIST_OPERATION_DATE, date);
	// request.put(PatrolListOperation.PATROL_LIST_OPERATION_CELLID, cellid);
	// request.put(PatrolListOperation.PATROL_LIST_OPERATION_MINID, minid);
	// request.put(PatrolListOperation.PATROL_LIST_OPERATION_PAGENUM, pagenum);
	//
	// return request;
	// }
	//
	// // 巡检记录详情
	// public static Request getPatrolDetailRequest(int Id) {
	// Request request = new Request(REQUEST_PATROL_DETAIL);
	// request.put(PatrolDetailOperation.PATROLDETAILOPERATION_ID, Id);
	//
	// return request;
	// }
	//
	// /**
	// * 获取角色信息
	// *
	// * @param username
	// * @param password
	// * @return
	// */
	// public static Request getRolesRequest(int userid, String cellid) {
	// Request request = new Request(REQUEST_GET_ROLES);
	// request.put(RolesOperation.ROLES_OPERATION_USERID, userid);
	// request.put(RolesOperation.ROLES_OPERATION_CELLID, cellid);
	//
	// return request;
	// }
	//
	// /**
	// * 获取当前位置附近10个小区的请求
	// *
	// * @param x
	// * @param y
	// * @return
	// */
	// public static Request getNearbyTenCommunities(String x, String y) {
	// Request request = new Request(REQUEST_NEARBY_TEN_COMMUNITIES);
	// request.put(
	// NearbyTenCommunitiesOperation.NEARBYTENCOMMUNITIESOPERATION_X,
	// x);
	// request.put(
	// NearbyTenCommunitiesOperation.NEARBYTENCOMMUNITIESOPERATION_Y,
	// y);
	//
	// return request;
	//
	// }
	//
	// /**
	// * 个人信息查看的请求
	// *
	// * @param userid
	// * 用户手机号码
	// * @return
	// */
	// public static Request getUserInfo(String userid) {
	// Request request = new Request(REQUEST_SHOW_USERINFO);
	//
	// request.put(ShowPersonInfoOperation.OPERATION_SHOWPERSONINFO_USERID,
	// userid);
	// return request;
	// }
	//
	// /**
	// * 个人信息修改的请求
	// *
	// * @param userid
	// * @param cellid
	// * @return
	// */
	// public static Request userdatamodifyRequest(int userid, String username,
	// int sex, String job, String interest, String headimg) {
	// Request request = new Request(REQUEST_GET_ROLES);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_USERID, userid);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_USERNAME,
	// username);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_SEX, sex);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_JOB, job);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_INTEREST,
	// interest);
	// request.put(UserdataModifyOperation.USERDATA_OPERATION_HEADIMG, headimg);
	// return request;
	// }
	//
	// /**
	// * 例子 参数解析为json put
	// *
	// * @param userid
	// * @param username
	// * @return
	// */
	// public static Request addBusinessRequest(int userid, String username) {
	// Request request = new Request(REQUEST_ADD_PHONE_NUM);
	// // Gson gson = new GsonBuilder().enableComplexMapKeySerialization()
	// // .create();
	// // HashMap<String, String> map1 = new HashMap<String, String>();
	// // String s = gson.toJson(map1);
	//
	// // Gson gson = new GsonBuilder().create();
	// // gson.toJson(.class)
	// request.put("json", "");
	// return request;
	// }
	//
	// /**
	// * 获取便民主界面列表
	// *
	// * @param userId
	// * @param uuid
	// * @return
	// */
	// public static Request getMenuHomeRequest(String userId, String uuid,
	// String menuId) {
	// Request request = new Request(REQUEST_GETCONVENIENCEHOME);
	// Gson gson = new GsonBuilder().enableComplexMapKeySerialization()
	// .create();
	// HashMap<String, String> map1 = new HashMap<String, String>();
	// map1.put("userId", userId);
	// map1.put("udid", uuid);
	// map1.put("menuId", 2 + "");// 便民菜单为2
	// String str = gson.toJson(map1);
	//
	// // Gson gson = new GsonBuilder().create();
	// // gson.toJson(.class)
	// request.put("json", str);
	// map1.put("menuId", menuId);// 便民菜单为2
	// // String str = gson.toJson(map1);
	//
	// // Gson gson = new GsonBuilder().create();
	// // gson.toJson(.class)
	// request.put("json", str);
	// return request;
	// }
	//
	// /**
	// * 获取便民列表请求
	// *
	// * @param userId
	// * @param uuid
	// * @return
	// */
	// public static Request getConvenienceListRequest(String userId, String
	// uuid,
	// String secondLevel, String bName) {
	// Request request = new Request(REQUEST_GETCONVENIENCELIST);
	// Gson gson = new GsonBuilder().enableComplexMapKeySerialization()
	// .create();
	// HashMap<String, Object> map1 = new HashMap<String, Object>();
	// if (null != secondLevel && null == bName) {
	// Map subMap = new HashMap<String, String>();
	// subMap.put("secondLevel", secondLevel);
	// map1.put("typeset", subMap);// 便民菜单为2
	// }
	// if (null == secondLevel && null != bName) {
	// map1.put("bName", userId);
	// }
	// map1.put("userId", userId);
	// map1.put("udid", uuid);
	// String str = gson.toJson(map1);
	// request.put("json", str);
	// return request;
	// }
	//
	// /**
	// * 获取商户详细信息
	// *
	// * @param userId
	// * @param uuid
	// * @param bid
	// * @return
	// */
	// public static Request getBusinessDetailInfoRequest(String userId,
	// String uuid, String bid) {
	// Request request = new Request(REQUEST_GETBUSINESSDETAILINFO);
	// Gson gson = new GsonBuilder().enableComplexMapKeySerialization()
	// .create();
	// HashMap<String, String> map1 = new HashMap<String, String>();
	// map1.put("userId", userId);
	// map1.put("udid", uuid);
	// map1.put("bId", bid);
	// String str = gson.toJson(map1);
	// request.put("json", str);
	// return request;
	// }
}
